export const useEvent = (widget)=>{
    const handleInput = (value)=>{
        if(!!widget.options.onInput){
            const callback = new Function('value',widget.options.onInput)
            callback.call(null,value)
        }
    }
    return {
        handleInput
    }
}